#include <SDL.h>
#include "SDL_mixer.h"

/* standard input shortcuts */
#define QUIT 1
#define CLEFT 2
#define CRIGHT 3
#define CUP 4
#define CDOWN 5
#define KW 6
#define KA 7
#define KS 8
#define KY 9
#define KSPACE 10


using namespace std;


namespace polaris
{

   class window
   {
       private:
       /* The screen surface */
       SDL_Surface *screen;


      int lastinput;
      struct inputs
      {
          bool cursorleft;
          bool cursorright;
          bool cursordown;
          bool cursorup;
      };


       public:
       window(int sizew, int sizeh, char* title);
       void refresh();
       void clear();

       int pollInputs();

       void DrawPixel(int x, int y,Uint8 R, Uint8 G,Uint8 B);

       bool setImg(SDL_Surface *pic, int x, int y);

       inputs  playerControls;

	/* NEW: Audio! :)
		BUT: not finished yet... :/ */
	void loadsound(char* filename);
	void playsound();


   };
}
